package com.gist.cithub.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gist.common.utils.PageUtils;
import com.gist.cithub.service.entity.StarEntity;

import java.util.List;
import java.util.Map;

/**
 * 服务收藏
 *
 * @author lejin
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 13:29:16
 */
public interface StarService extends IService<StarEntity> {

    PageUtils queryPage(Map<String, Object> params);

    StarEntity isStared(Integer serviceId, Integer userId);


    int getStarNum(Integer serviceId);

    List<StarEntity> getStarByUserId(Integer userId);
}

